@include('Home.head')
<body>
<div class="container" id="app">
    @include('Home.member.header')
    {{ csrf_field() }}
    <div class="my-nav-bar">
        <ol class="am-breadcrumb">
            <li><a href="#">首页</a></li>
            <li><a href="#">代理合伙人</a></li>
        </ol>
    </div>
    <div class="cart-panel">
        
            <div class="withdrawals-panel">
                <table class="am-table am-table-striped am-table-hover comm-table">
                    <thead>
                    <tr style="overflow-x: scroll;">
						<th>ID</th>
                        <th>账号</th>
                        <th>姓名</th>
                        <th>直推</th>
						<th>业绩</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="val in applyList">
						<td>
						    <span>@{{val.sort}}</span>
						</td>
                        <td>
                            <span>@{{val.name}}</span>
                        </td>
                       <td>
                            <span >@{{val.user_name}}</span>
                        </td>
                        <td>
                           <span >@{{val.super_recommend}}</span>
                        </td>
						<td>
						   <span >@{{val.super_team_count}}</span>
						</td>
                    </tr>
                    </tbody>
                </table>
            </div>

    </div>
    @include('Home.foot')
</div>
</body>
<script src="{{ URL::asset('js/address/distpicker.data.js') }}"></script>
<script src="{{ URL::asset('js/address/distpicker.js') }}"></script>
<script src="{{ URL::asset('js/address/main.js') }}"></script>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            title:'代理合伙人',
            address: {
                'type':'0',
                'province':'北京市',
                'city':'',
                'district':'',
                'status':0,
            },
            applyList:[]
        },
        methods: {
            initialize: function () {
                $.post("/home/member/partner", {'_token': '{{csrf_token()}}'}, function (res) {
                    if (res.code) {
                        app.applyList = res.data;
						console.log(app.applyList)
                    }
                });
            },
            
        },
        //自动执行
        mounted: function () {
            this.initialize();
        },
    })
</script>
</html>